dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1af93cf
)
Add more error handling
author
Aaron Schulz
<aaron@users.mediawiki.org>
Sun, 7 Sep 2008 00:38:57 +0000
(
00:38
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Sun, 7 Sep 2008 00:38:57 +0000
(
00:38
+0000)
includes/filerepo/FileRepo.php
patch
|
blob
|
history
diff --git
a/includes/filerepo/FileRepo.php
b/includes/filerepo/FileRepo.php
index
23a132e
..
02d0d1f
100644
(file)
--- a/
includes/filerepo/FileRepo.php
+++ b/
includes/filerepo/FileRepo.php
@@
-101,7
+101,7
@@
abstract class FileRepo {
# Now try an old version of the file
if ( $time !== false ) {
$img = $this->newFile( $title, $time );
- if ( $img->exists() ) {
+ if ( $img
&& $img
->exists() ) {
if ( !$img->isDeleted(File::DELETED_FILE) ) {
return $img;
} else if ( ($flags & FileRepo::FIND_PRIVATE) && $img->userCan(File::DELETED_FILE) ) {